#!/usr/bin/python
# encoding: utf-8
'''
@File    :   list_tupe.py
@Time    :   2020/03/11 22:14:05
@Author  :   fangkaijin 
@Version :   1.0
@Contact :   fangkaijin@gmail.com
@License :   杭州移动互联
@Desc    :   None
'''

# 导入库包
import sys, os

#list
l = ['s', '小花', '小草']
print(len(l))
print(l.__getitem__(1))
print(l[2])
l.insert(0, '小黑')
print(len(l))
l.append('小白')
print(len(l))
print(l[-1])
print(l.pop())
print(len(l))
#循环遍历
for index in l:
    print(index)

for index, value in enumerate(l):
    print(str(index) + '---' + value)

#print(str(l).decode('string_escape'))

#tupe

t = ('小黑', '小白', '小花', '小草')
#print('t---'+str(t).decode('string_escape'))

t1 = ('小黑', '小白', '小花', '小草', l)
#print('t1---'+str(t1).decode('string_escape'))
t1[4][1] = '小猪'
print(t1)

#输入
brithday = input('你的生日:')
if int(brithday) < 2000:
    print('你不是00后')
else:
    print('你是00后')